home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000014_icon-group-sender _Fri Sep 11 13:08:04 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id NAA07434
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Fri, 11 Sep 1998 13:08:04 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA31390; Fri, 11 Sep 1998 13:07:37 -0700
Message-Id: <4FD6422BE942D111908D00805F3158DF0757B57D@RED-MSG-52>
From: Todd Proebsting <toddpro@microsoft.com>
To: "'cwills@bix.com'" <cwills@bix.com>, icon-group@optima.CS.Arizona.EDU
Subject: RE: Context Switching
Date: Fri, 11 Sep 1998 08:34:35 -0700
X-Mailer: Internet Mail Service (5.5.2232.9)
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Jcon (http://www.cs.arizona.edu/icon/jcon/) builds Icon co-expressions on
top of Java's thread model. Just about any thread package would be
sufficient---in fact, it's almost certainly overkill since (as implied
below) exactly one thread is unblocked at any given time. Using semaphores
it was quite simple. The requirements below are, indeed, necessary.
Todd Proebsting
-----Original Message-----
From: cwills@bix.com [mailto:cwills@bix.com]
Sent: Thursday, September 10, 1998 7:06 PM
To: icon-group@optima.CS.Arizona.EDU
Subject: RE: Context Switching
I believe that if one has access to a thread model, you could probably
implement the coswitch function. By careful use of semaphors and blocking
one could perform the switch. Under OS/2 the CSet (or VisualAge C compiler)
one could use the _beginthread facility.
The requirements would be:
1) all memory allocations from the OS have to be accessible from all
threads
2) only one thread can be active at a time
3) any files (or other system objects) have to be shared across all
threads
Cheyenne